package com.accp.vehiclecare.action.lscaction;

import com.accp.vehiclecare.biz.lscbiz.LscServiceitemBiz;
import com.accp.vehiclecare.biz.lscbiz.LscsubjoinitemBiz;
import com.accp.vehiclecare.pojo.Serviceitem;
import com.accp.vehiclecare.pojo.Subjoinitem;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/c/lscsvia")
public class LscserviceitemAction {
    @Autowired
    private LscServiceitemBiz biz;

    @Autowired
    private LscsubjoinitemBiz sjbiz;


    @GetMapping("qrst")
    public List<Serviceitem> queryall(String rid){
        return biz.queryall(rid);
    }

    @GetMapping("qrid")
    public List<Subjoinitem> querbyrid(String rid){
        return sjbiz.querbyid(rid);

    }
}
